package com.haixiaoke.saas.contract.domain;

import com.haixiaoke.saas.common.annotation.Excel;
import com.haixiaoke.saas.common.core.domain.BaseEntity;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 业主信息对象 biz_proprietor
 *
 * @author xiaolong
 * @date 2024-06-06
 */
@Data
public class Proprietor extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 业主信息id
     */
    private Long proprietorId;

    /**
     * 租户id
     */
    @Excel(name = "租户id")
    private String tenantId;

    /**
     * C端用户id
     */
    @Excel(name = "C端用户id")
    private Long conUserId;

    /**
     * 业主名称
     */
    @Excel(name = "业主名称")
    @NotNull(message = "请填写业主名称")
    private String proprietorName;

    /**
     * 业主手机号码
     */
    @Excel(name = "业主手机号码")
    @NotNull(message = "请填写业主手机号码")
    @Pattern(regexp = "(?:0|86|\\+86)?1[3456789]\\d{9}", message = "手机号格式不正确")
    private String proprietorMobile;

    /**
     * 业主类型:1.个人业主;2.企业业主
     */
    @Excel(name = "业主类型:1.个人业主;2.企业业主")
    @NotNull(message = "请选择业主类型")
    private String proprietorType;

    /**
     * 身份证号
     */
    @Excel(name = "身份证号")
    private String cardNumber;

    /**
     * 社会统一信用代码
     */
    @Excel(name = "社会统一信用代码")
    private String socialCreditCode;

    /**
     * 房屋委托:1.待开通;2.已完成
     */
    @Excel(name = "房屋委托:1.待开通;2.已完成")
    private String houseCommissionStatus;

    /**
     * 代理服务:1.待开通;2.未完成;3.已完成
     */
    @Excel(name = "代理服务:1.待开通;2.未完成;3.已完成")
    private String proxyServiceStatus;

    /**
     * 创建机构
     */
    @Excel(name = "创建机构")
    private String createOrganization;

    /**
     * 逻辑删除标志(0代表存在
     */
    private String delFlag;

    /**
     * 房屋委托信息
     */
    private HouseCommission houseCommission;

    /**
     * 代理服务信息
     */
    private ProxyService proxyService;


}
